<template>
  <div class="col-lg-5">
    <table class="list-group">
      <tr class="info">
        <td>姓名</td>
        <td>邮箱</td>
        <td>操作</td>
      </tr>
      <h2 v-show="comments.length === 0"> 暂无信息，点击上方的东东</h2>
      <Item v-for="(i, index) in comments"
       :key="index"
       :i='i'
       :deleteUser="deleteUser"
       :index="index"
        />
    </table>
  </div>
</template>

<script>
import Item from './Item.vue'
export default {
  props: ['comments', 'deleteUser'],
  components: {
    Item
  }
}
</script>

<style>
</style>
